﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
namespace MRSite.Entity
{
    /// <summary>
    /// 共建值释放记录
    /// </summary>
    [Table(Name = "customer_gold_return")]
    public class CustomerGoldReturn : Entity
    {
        /// <summary>
        ///
        /// </summary>
        [Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
        public override int id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_id")]
        public int user_id { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "user_name")]
        public String user_name { get; set; }

        /// <summary>
        ///    当天贡献值
        /// </summary>
        [Column(Name = "score")]
        public decimal score { get; set; }


        /// <summary>
        ///    返的总金额
        /// </summary>
        [Column(Name = "totalfee")]
        public decimal totalfee { get; set; }

        /// <summary>
        ///    可用共建值
        /// </summary>
        [Column(Name = "golds")]
        public decimal golds { get; set; }




        /// <summary>
        ///    养老共建值
        /// </summary>
        [Column(Name = "points")]
        public decimal points { get; set; }

        /// <summary>
        ///    释放百分比
        /// </summary>
        [Column(Name = "returnPer")]
        public decimal returnPer { get; set; }

        /// <summary>
        ///  添加
        /// </summary>
        [Column(Name = "addtime")]
        public DateTime addtime { get; set; }


        /// <summary>
        /// 公排id
        /// </summary>
        [Column(Name = "gpid")]
        public int gpid { get; set; }

        /// <summary>
        /// 第几天
        /// </summary>
        [Column(Name = "qishu")]
        public int qishu { get; set; }

        /// <summary>
        /// 报单号
        /// </summary>
        [Column(Name = "orderno")]
        public string orderno { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Column(Name = "remark")]
        public String remark { get; set; }

        /// <summary>
        /// 应返还时间
        /// </summary>
        [Column(Name = "yreturntime")]
        public DateTime? yreturntime { get; set; }


        /// <summary>
        /// 结算日期
        /// </summary>
        [Column(Name = "returntime")]
        public DateTime? returntime { get; set; }

        /// <summary>
        /// 状态 1返还 0未返完
        /// </summary>
        [Column(Name = "status")]
        public int status { get; set; }


    }
}
